package com.example.administrator.q1;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

/**
 * Created by Administrator on 2017/9/1.
 */

public class FragmentThree extends Fragment{

    WebView webView;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_fragment_three, null);

        webView = (WebView)view.findViewById(R.id.webView);

        webView.loadUrl("http://nethackwiki.org");
        webView.canGoBack();
        webView.buildDrawingCache();
        webView.canGoBackOrForward(3);
        webView.getProgress();
        return view;
    }
}
